package com.hzjy.quartz.task;

import com.hzjy.quartz.service.BackupTaskService;
import com.hzjy.quartz.util.MysqlBackupUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 *  备份定时任务
 * @author SS
 */
@Component("backupTask")
public class BackupTask {
    @Autowired
    private BackupTaskService backupTaskService;
    /**
     * 每日数据备份
     */
    public void everyDayBackup(){
        MysqlBackupUtil.backupData("47.100.199.10","ruoyi test_1","root","Shi294968074","/opt/tomcat/");
    }
}
